home *** CD-ROM | disk | FTP | other *** search
- // Class to show context help in menus and so on
-
- #ifndef __CONTEXT_H_
- #define __CONTEXT_H_
-
- #include "icon.h"
- #include "pcx.h"
-
- enum { NO_STATUS, MEDIUM_ICON_STATUS, SMALL_ICON_STATUS, LARGE_ICON_STATUS,
- STRING_STATUS, PCX_STATUS };
-
- class Context
- {
- protected:
- rect statusPos; // where to show status
- int statusType; // help list, icons, PCX, or something else
- char** statusStrings; // status line help strings
- int* statusList; // we can use one or both
- public:
- Context(rect STATUSPOS = rect(0, 24, 79, 25),
- int STATUSTYPE = 0, char** STATUSSTRINGS = NULL,
- int* STATUSLIST = NULL);
-
- virtual void showStatus(int pos, int pat = 0);
- };
-
- #endif __CONTEXT_H_